package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TSalesMapper;
import com.ruoyi.system.domain.TSales;
import com.ruoyi.system.service.ITSalesService;
import com.ruoyi.common.core.text.Convert;

/**
 * Service业务层处理
 * @date 2021-03-24
 */
@Service
public class TSalesServiceImpl implements ITSalesService
{
    @Autowired
    private TSalesMapper tSalesMapper;

    /**
     * 查询
     */
    @Override
    public TSales selectTSalesById(Long salesId)
    {
        return tSalesMapper.selectTSalesById(salesId);
    }

    @Override
    public List<TSales> selectTSalesListAll() {
        return tSalesMapper.selectTSalesListAll();
    }

    /**
     * 查询
     */
    @Override
    public List<TSales> selectTSalesList(TSales tSales)
    {
        return tSalesMapper.selectTSalesList(tSales);
    }

    /**
     * 新增
     */
    @Override
    public int insertTSales(TSales tSales)
    {
        return tSalesMapper.insertTSales(tSales);
    }

    /**
     * 修改
     */
    @Override
    public int updateTSales(TSales tSales)
    {
        return tSalesMapper.updateTSales(tSales);
    }

    /**
     * 删除
     */
    @Override
    public int deleteTSalesByIds(String ids)
    {
        return tSalesMapper.deleteTSalesByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【
     */
    @Override
    public int deleteTSalesById(Long salesId)
    {
        return tSalesMapper.deleteTSalesById(salesId);
    }
}